package org.dromara.Nyt7PlotDetailInfo.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.Nyt7FarmerInsuranceInfo.domain.Nyt7FarmerInsuranceInfo;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;

/**
 * 地块详细信息对象 nyt_7_plot_detail_info
 *
 * @author Lion Li
 * @date 2024-12-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("nyt_7_plot_detail_info")
public class Nyt7PlotDetailInfoEx extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 地块编码
     */
    private String plotCode;

    /**
     * 投保面积
     */
    private Long insuredArea;

    /**
     * 实测面积
     */
    private Long measuredArea;

    /**
     * 农户id
     */
    private Long farmerId;

    /**
     * 确权状态
     */
    private String confirmationStatus;

    /**
     * 经度坐标
     */
    private String latitude;

    /**
     * 纬度坐标
     */
    private String longitude;

//    /**
//     * 区域边界
//     */
//    private String regionBoundary;

    /**
     * 市
     */
    private String city;

    /**
     * 县
     */
    private String districtCounty;

    /**
     * 乡
     */
    private String town;

    /**
     * 村
     */
    private String village;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private String delFlag;

    @TableField(exist = false)
    private Nyt7FarmerInsuranceInfo farmerInsuranceInfo;
}
